﻿namespace AgencyManagerSystem.Common
{
    public abstract class Definer
    {
        public const string ACCESS_TOKEN = "Authorization";
        //public const string CURRENT_TRAN_CODE = "current_trancode";
        public const string CURRENT_PROFILE = "current_profile";
        public const int ROLE_ADM = 0;
        public const int TRANPOOL_WARNSIZE = 64;
        public const string POLICY_NAME = "AMS";
        public const int DOMAIN_SUPER = 0;
        public const int DOMAIN_CENTER = 1;
        public const int DOMAIN_SITE = 2;
        public const int DOMAIN_SUPPILER = 3;
    }
    public enum PolicyDomain
    {
        //ignore则不检查域属性
        //retail或suppiler有权，则center与super默认有权
        //center有权则super有权
        Super,Center,Retail,Supplier,Ignore
    }
  
    public enum AmsCode
    {
        Succ=0,AuthFaild=1,TokenExpire=2,InnError=3,ArgNotAccept=3,NotSupport=4,DataNotFound=5
    }
    public enum AppOpt
    {
        Exec,Create, Delete, UnApprove,Approve, Func1,Func2,Func3,Func4,
    }
    public static class MyJwtClaimTypes
    {
        public const string Domain = "dn";
        public const string Department = "dept";
    }
    public enum StatusCode
    {
        Open = 0, Pushed = 1, Confirm=2 ,Closed=3,
    }
    public enum ApproveCode
    {
        Normal=0,Approved=1
    }
}
